package n09.second;

public class Circle implements Shape {
	private double radius;
	public Circle(double radius) {
		this.radius=radius;
	}
	@Override
	public double getArea() {
		return Math.PI*radius*radius;
	}
	@Override
	public String toString() {
		return String.format("半径是%.2f的圆，其面积为%.2f", radius, getArea());
	}
}
